import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "./SeqRewardHelper";
import { SeqIntHelper } from "./SeqIntHelper";
type int = number;
//class SPetExploreResult
    
    export  class SPetExploreResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetExploreResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.isWin);
            arg1.writeBool(this.autoExplore);
            arg1.writeInt(this.currentLevel);
            SeqRewardHelper.write(arg1, this.rewards);
            SeqIntHelper.write(arg1, this.cards);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.isWin = arg1.readBool();
            this.autoExplore = arg1.readBool();
            this.currentLevel = arg1.readInt();
            this.rewards = SeqRewardHelper.read(arg1);
            this.cards = SeqIntHelper.read(arg1);
            return;
        }

        public /* const */_type: int=222;

        public /* var */isWin: Boolean;

        public /* var */autoExplore: Boolean;

        public /* var */currentLevel: int;

        public /* var */rewards: Array<any>;

        public /* var */cards: Array<any>;

        public static /* var */_regist: SPetExploreResult;
    }

            SPetExploreResult._regist = new SPetExploreResult(true);
        